package com.revenant.driver.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.revenant.driver.R;
import com.revenant.driver.bean.ShipperBean.FaPiaoItemBean;

import java.util.Arrays;
import java.util.List;

/**
 * @ProjectName: Shipper
 * @Package: com.revenant.shipper.adapter
 * @ClassName: MineBigItemAdapter
 * @Description: java类作用描述
 * @Author: revenant
 * @CreateDate: 2019-12-30 14:18
 * @UpdateUser: 更新者
 * @UpdateDate: 2019-12-30 14:18
 * @UpdateRemark: 更新说明
 * @Version: 1.0
 */
public class FaPiaoItemAdapter extends BaseQuickAdapter<FaPiaoItemBean.DataBean.ResultBean, BaseViewHolder> {
    public FaPiaoItemAdapter() {
        super(R.layout.item_receipt_write);
    }

    List<String> mList = Arrays.asList("待装货", "运输中", "待结算", "待评价", "待确认", "完成");

    @Override
    protected void convert(BaseViewHolder helper, FaPiaoItemBean.DataBean.ResultBean item) {
        helper.setText(R.id.receipt_orderstatus, mList.get(item.getStatus()));
        helper.setText(R.id.receipt_orderno, item.getTaxNumber());
//        helper.setText(R.id.receipt_orderstart, item.getAreaname());
//        helper.setText(R.id.receipt_orderend, item.getAreaname());
        helper.setText(R.id.receipt_orderprice, item.getPrice());

    }
}
